OSX build fix
authorJoey Hess <joeyh@joeyh.name>
Mon, 17 Feb 2025 18:01:54 +0000 (14:01 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 17 Feb 2025 18:01:54 +0000 (14:01 -0400)
Utility/DirWatcher/FSEvents.hs

index 94451b109d622e15ece120acff3049110aebf8a4..d4e20e9249db34e55946154ae6dc733cade74b09 100644 (file)
@@ -20,7 +20,7 @@ watchDir dir ignored scanevents hooks = do
        unlessM fileLevelEventsSupported $
                giveup "Need at least OSX 10.7.0 for file-level FSEvents"
        scan dir
-       eventStreamCreate [dir] 1.0 True True True dispatch
+       eventStreamCreate [fromOsPath dir] 1.0 True True True dispatch
   where
        dispatch evt
                | ignoredPath ignored (toOsPath (eventPath evt)) = noop